<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=
    
    , initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- <script>
var a = 10;
a='hello'
alert(a);

    </script> -->

    <script>
        // 获取
// window.alert("Hello World!");
// alert("Hello BON World!")

// var flag=confirm("Are you sure?");
// alert("flag");
alert(location.href)
location.href="http://www.baidu.com"

    </script>



</body>
</html>